import {defineStore} from 'pinia'

const system_info = defineStore({
  id:'system_info',
  state:()=>({
    system_info:{},
    // tabbar的高度
    tabbar_height:0
  }),
  actions:{
    setSystemInfo(){
      this.system_info = uni.getSystemInfoSync()
    },
    // 设置tabbar高度
    setTabbarHeight(tabbar_height){
      this.tabbar_height = tabbar_height
    }
  }
})

export default system_info